var payVm;
var token='';
var openId='';
var orderId='';
var phone='';
var payOrderHttp;
window.onload = function () {
    token=getParam('token');
    openId=getParam('openId');
    orderId=getParam('orderId');
    phone=getParam('phone');
    window.localStorage.setItem("token",token);
    window.localStorage.setItem("openId",openId);
    payVm = new Vue({
        el:'#pay_id',
        data:{},
        methods:{
           
        }
    });

    payOrderHttp = function(){
         var payUrl=serviceUrl+"/lyPay/wxPay?orderId="+orderId + "&actId=3";
         window.location.href = payUrl;
    };

    var winHeight = $(window).height();
    function is_weixin() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger") {
            return true;
        } else {
            return false;
        }
    }
    var isWeixin = is_weixin();
    if(isWeixin){
        payOrderHttp();
        /*
        $(".weixin-tip").css("height",winHeight);
        $(".weixin-tip").show();*/
    }else{
        payOrderHttp(); 
    }

};